package com.sgb.link.entity;

import com.contrarywind.interfaces.IPickerViewData;
import com.google.gson.annotations.SerializedName;

import java.util.List;

public class BrandEntity {
    /***
     "name": "自定义品牌",
     "childList":[
     {
     "name": "品牌名称",
     "id": 3396
     },
     ]
     */
    @SerializedName("name")
    private String name;
    @SerializedName("childList")
    private List<BrandChild> childList;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<BrandChild> getChildList() {
        return childList;
    }

    public void setChildList(List<BrandChild> childList) {
        this.childList = childList;
    }


    public static class BrandChild implements IPickerViewData {
        @SerializedName("name")
        private String name;
        @SerializedName("id")
        private String id;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        @Override
        public String getPickerViewText() {
            return name;
        }
    }


}
